
import flextv.main.logic.MainServices;
import flextv.main.logic.SpringApplicationContext;
import flextv.main.test.TestRepository;

import flexunit.framework.TestSuite;


// public static const DB_FILE: File = File.applicationStorageDirectory.resolvePath("databaseTest.db");

private function onCreationComplete(): void {
	new SpringApplicationContext(this.initTest, ["beans-test.xml"]).load();
}

private function initTest(event: Event): void {
	MainServices.instance.persistenceService.open();
	
	const suite: TestSuite = new TestSuite();
	TestRepository.getInstance().fillTestSuite(suite);
	
	testRunner.test = suite;
	testRunner.startTest();
}
